// ? 系统全局字典

/**
 * @description：状态选项常量
 */
export const statusConst = [
  { label: "启用", value: true },
  { label: "禁用", value: false }
];

/**
 * @description：用户性别常量
 */
export const userSexConst = [
  { label: "未知", value: 0 },
  { label: "男", value: 1 },
  { label: "女", value: 2 }
];

/**
 * @description：是/否类型常量
 */
export const yesOrNoConst = [
  { label: "否", value: false, tagType: "info" },
  { label: "是", value: true, tagType: "success" }
];

/**
 * @description：附件类型常量
 */
export const fileCategoryConst = [
  { label: "模版", value: "template" },
  { label: "头像", value: "avatar" },
  { label: "附件", value: "attachment" }
];

/**
 * @description：站内信类型常量
 */
export const mailTypeConst = [
  { label: "通知", value: 0, tagType: "info" },
  { label: "公告", value: 1, tagType: "warning" },
  { label: "私信", value: 2, tagType: "primary" }
];

/**
 * @description：站内信推送范围常量
 */
export const mailSendingRangeConst = [
  { label: "全部用户", value: 0, tagType: "info" },
  { label: "指定机构", value: 1, tagType: "warning" },
  { label: "指定角色", value: 2, tagType: "success" },
  { label: "指定用户", value: 3, tagType: "primary" }
];

/**
 * @description：菜单类型常量
 */
export const menuTypeConst = [
  { label: "目录", value: 0, tagType: "warning" },
  { label: "菜单", value: 1, tagType: "success" },
  { label: "按钮", value: 2, tagType: "primary" }
];

/**
 * @description：资源访问类型常量
 */
export const resourceMethodConst = [
  { label: "GET", value: "GET", tagType: "primary" },
  { label: "POST", value: "POST", tagType: "success" }
];

/**
 * @description：资源授权类型常量
 */
export const resourceAuthorizedConst = [
  { label: "匿名", value: false, tagType: "primary" },
  { label: "授权", value: true, tagType: "success" }
];

/**
 * @description：序列刷新类型常量
 */
export const sequenceResetConst = [
  { label: "每天", value: "D", tagType: "success" },
  { label: "每月", value: "M", tagType: "primary" },
  { label: "每年", value: "Y", tagType: "warning" },
  { label: "不重置", value: "N", tagType: "info" }
];

/**
 * @description：序列规则类型常量
 */
export const sequenceRuleTypeConst = [
  { value: "const", label: "常量" },
  { value: "number", label: "计数" },
  { value: "date", label: "日期型(yyyyMMdd)" },
  { value: "shortdate", label: "日期型(yyMMdd)" },
  { value: "ydate", label: "年月(yyyyMM)" },
  { value: "sydate", label: "年月(yyMM)" },
  { value: "timestamp", label: "时间戳" },
  { value: "guid", label: "Guid" },
  { value: "random", label: "随机数" }
];

/**
 * @description：序列填充方式常量
 */
export const sequencePaddingSideConst = [
  { value: "left", label: "向左补齐" },
  { value: "right", label: "向右补齐" },
  { value: "none", label: "无" }
];
